﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text.RegularExpressions;
using BaseData.UI;

namespace Shizir
{
    public partial class _Default : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = @"userName";

            string outStr = Regex.Replace(str.ToString(), "~/\\w./", "~s/(^|\\W*)(\\w*)/$1\\u$2/g",
                    RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);
            /*
             * if($str=~/\w./) 
{ 
$str=~s/(^|\W*)(\w*)/$1\u$2/g; 
             * */

        }
    }
}